package org.ragdollcat.secondaiagent.model.image;

import org.ragdollcat.secondaiagent.model.image.ImageUrl;

public class Content {
    private String type;
    // 对于image_url类型，需要包装在image_url字段中
    private ImageUrl image_url;
    // 对于text类型，直接使用text字段
    private String text;

    // 用于image_url类型的构造函数
    public Content(String type, ImageUrl imageUrl) {
        this.type = type;
        this.image_url = imageUrl;
    }

    // 用于text类型的构造函数
    public Content(String type, String text) {
        this.type = type;
        this.text = text;
    }

    // Getters and Setters
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public ImageUrl getImage_url() {
        return image_url;
    }

    public void setImage_url(ImageUrl image_url) {
        this.image_url = image_url;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
